package ym.ecrm.core.domain.marketManagement;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ym.ecrm.core.domain.base.BaseEntity;
import ym.ecrm.core.domain.systemManagement.User;

/**
 * 市场计划类
 * @author fage
 *@version 1.0
 */
@Entity
@Table(name = "t_marketingPlanning")
public class MarketingPlanning extends BaseEntity{

	/**
	 * PlanningCode 计划编号
	 */
	private String PlanningCode;
	/**
	 * name 计划名称
	 */
	private String name;
	/**
	 * target 计划目标
	 */
	private String target;
	
	/**
	 * protocolStartTime 拟定开始时间
	 */
	private String protocolStartTime;
	/**
	 * protocolEndTime 拟定结束时间
	 */
	private String protocolEndTime;
	/**
	 * practicalStartTime 实际开始时间
	 */
	private String practicalStartTime;
	
	/**
	 * practicalEndTime 实际结束时间
	 */
	private String practicalEndTime;
	/**
	 * expenseBudget 费用预算
	 */
	private String expenseBudget;
	/**
	 * costEstimation 成本估计
	 */
	private String costEstimation;
	/**
	 * anticipatedRevenue 预计收入
	 */
	private String anticipatedRevenue;
	
	/**
	 * priority 优先级
	 */
	private String priority;
	/**
	 * state 状态
	 */
	private String state;
	
	/**
	 * locality 地区
	 */
	private String locality;
	/**
	 * city 城市
	 */
	private String city;
	/**
	 * user 负责人
	 */
	  @ManyToOne(targetEntity = User.class
	           ,cascade={CascadeType.PERSIST,CascadeType.MERGE})
	@JoinColumn(name="userId")
	private User user;
	/**
	 * summarize 总结
	 */
	private String summarize;
	
	
	public String getPlanningCode() {
		return PlanningCode;
	}
	public void setPlanningCode(String planningCode) {
		PlanningCode = planningCode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public String getProtocolStartTime() {
		return protocolStartTime;
	}
	public void setProtocolStartTime(String protocolStartTime) {
		this.protocolStartTime = protocolStartTime;
	}
	public String getProtocolEndTime() {
		return protocolEndTime;
	}
	public void setProtocolEndTime(String protocolEndTime) {
		this.protocolEndTime = protocolEndTime;
	}
	public String getPracticalStartTime() {
		return practicalStartTime;
	}
	public void setPracticalStartTime(String practicalStartTime) {
		this.practicalStartTime = practicalStartTime;
	}
	public String getPracticalEndTime() {
		return practicalEndTime;
	}
	public void setPracticalEndTime(String practicalEndTime) {
		this.practicalEndTime = practicalEndTime;
	}
	public String getExpenseBudget() {
		return expenseBudget;
	}
	public void setExpenseBudget(String expenseBudget) {
		this.expenseBudget = expenseBudget;
	}
	public String getCostEstimation() {
		return costEstimation;
	}
	public void setCostEstimation(String costEstimation) {
		this.costEstimation = costEstimation;
	}
	public String getAnticipatedRevenue() {
		return anticipatedRevenue;
	}
	public void setAnticipatedRevenue(String anticipatedRevenue) {
		this.anticipatedRevenue = anticipatedRevenue;
	}
	public String getPriority() {
		return priority;
	}
	public void setPriority(String priority) {
		this.priority = priority;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getLocality() {
		return locality;
	}
	public void setLocality(String locality) {
		this.locality = locality;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getSummarize() {
		return summarize;
	}
	public void setSummarize(String summarize) {
		this.summarize = summarize;
	}
	
	
}
